-- GENERATED SPELL FOR [Sethekk Initiate] --


function spell0_18318(pUnit, Event) --@Spell Reflection,Self--
pUnit:FullCastSpellOnTarget(33961,pUnit)
pUnit:RegisterEvent('Sorts_18318', 7000, 1)
end

function spell1_18318(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(16145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18318', 30323, 1)
end

function Sorts_18318(pUnit, Event)
local choix_sorts_18318 = math.random(0, 1)
if choix_sorts_18318 == 0 then
pUnit:RegisterEvent('spell0_18318', 1, 1)
end
if choix_sorts_18318 == 1 then
pUnit:RegisterEvent('spell1_18318', 1, 1)
end
end

function mob18318_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18318', math.random(1500, 3000), 1)
end

function mob18318_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18318_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18318_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18318, 1, 'mob18318_Action')
RegisterUnitEvent(18318, 2, 'mob18318_Leave')
RegisterUnitEvent(18318, 3, 'mob18318_Kill')
RegisterUnitEvent(18318, 4, 'mob18318_Die')
